import type { WxLoginParams, WxLoginResponse } from '@/types/login'
import { http } from '@/utils/http'
/**
 *微信登录接口接口方法
 * @param data 微信登录参数 code,encryptedData,iv
 */
export const postLoginWxMinAPI = (data: WxLoginParams) =>
  http.post<WxLoginResponse>('/login/wxMin', data)
/**
 * 模拟微信手机号登录的接口方法
 * @param phoneNumber  手机号
 */
export const postLoginWxMinSimpleAPI = (phoneNumber: string) =>
  http.post<WxLoginResponse>('/login/wxMin/simple', { phoneNumber })
